import request from '@/utils/request'

// 查询元器件工况管理列表
export function listConditions(query) {
  return request({
    url: '/bearing/conditions/list',
    method: 'get',
    params: query
  })
}

// 查询元器件工况管理详细
export function getConditions(conditionId) {
  return request({
    url: '/bearing/conditions/' + conditionId,
    method: 'get'
  })
}

// 新增元器件工况管理
export function addConditions(data) {
  return request({
    url: '/bearing/conditions',
    method: 'post',
    data: data
  })
}

// 修改元器件工况管理
export function updateConditions(data) {
  return request({
    url: '/bearing/conditions',
    method: 'put',
    data: data
  })
}

// 删除元器件工况管理
export function delConditions(conditionId) {
  return request({
    url: '/bearing/conditions/' + conditionId,
    method: 'delete'
  })
}
